exports.ZPMixin = {
    onPullDownRefresh: function() {
        this.isPagingRefNotFound() || this.$refs.paging.reload().catch(function() {});
    },
    onPageScroll: function(o) {
        this.isPagingRefNotFound() || (this.$refs.paging.updatePageScrollTop(o.scrollTop), 
        o.scrollTop < 10 && this.$refs.paging.doChatRecordLoadMore());
    },
    onReachBottom: function() {
        this.isPagingRefNotFound() || this.$refs.paging.pageReachBottom();
    },
    methods: {
        isPagingRefNotFound: function() {
            return !this.$refs.paging;
        }
    }
};